﻿using SqlSugar;

namespace ProjectScheduling_web.model
{
    /// <summary>
    /// 收款主表
    /// </summary>
    [SugarTable("ReceiveMoney")]
    public class ReceiveMoney : BClass
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        public string? ProjectName { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
        public int CustomerId { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string? CustomerName { get; set; }
        /// <summary>
        /// 收款方式ID
        /// </summary>
        public int ReceiveTypeId { get; set; }
        /// <summary>
        /// 收款方式名称
        /// </summary>
        public string? ReceiveTypeName { get; set; }
        /// <summary>
        /// 收款金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 收款日期
        /// </summary>
        public DateTime ReceiveDate { get; set; }
        /// <summary>
        /// 经办人ID
        /// </summary>
        public int SalerId { get; set; }
        /// <summary>
        /// 经办人名称
        /// </summary>
        public string? SalerName { get;set; }
        /// <summary>
        /// 归属部门ID
        /// </summary>
        public int OrgId { get; set; }
        /// <summary>
        /// 归属部门名称
        /// </summary>
        public string? OrgName { get; set; }
        /// <summary>
        /// 收款编号
        /// </summary>
        public string? Code { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 操作人ID
        /// </summary>
        public int CreaterId { get; set; }
        /// <summary>
        /// 操作人名称
        /// </summary>
        public string? CreaterName { get; set; }
        /// <summary>
        /// 子表集合
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<ReceiveMoney_Contract>? Contracts { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Note { get; set; }
    }
}
